for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class Contact {
@PrimaryGeneratedColumn('uuid')
private id: string;
@Column({ type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
private createdAt: Date;
@Column({ type: 'varchar', nullable: true })
private firstName: string;
private lastName: string;
private company: string;
private email: string;
private phoneNumber: string;
private notes: string;
constructor(
firstName: string,
lastName: string,
company: string,
email: string,
phoneNumber: string,
notes: string
) {
this.firstName = firstName;
this.lastName = lastName;
this.company = company;
this.email = email;
this.phoneNumber = phoneNumber;
this.notes = notes;
}
public getId(): string | null {
return this.id;
public getCreatedAt(): Date {
return this.createdAt;
public getFirstName(): string | null {
return this.firstName;
public getLastName(): string | null {
return this.lastName;
public getCompany(): string | null {
return this.company;
public getEmail(): string | null {
return this.email;
public getPhoneNumber(): string {
return this.phoneNumber;
public getNotes(): string {
return this.notes;